{ //=========Macro generated from canvas: c2/Efficiencies //========= (Sat Mar 28 21:21:15 2009) by ROOT version5.22/00 TCanvas *c2 = new TCanvas("c2", "Efficiencies",0,44,600,600); gStyle->SetOptStat(0); c2->Range(-0.125,8.749999,1.125,121.25); c2->SetFillColor(0); c2->SetBorderMode(0); c2->SetBorderSize(2); c2->SetFrameBorderMode(0); c2->SetFrameBorderMode(0); c2->SetLeftMargin(0.19); c2->SetRightMargin(0.06); TH1 *TrackCosAxesTPC = new TH1F("TrackCosAxesTPC","TPC Tracking Efficiency vs Cos #theta (p>1GeV and NHits>3)",10,0,1); TrackCosAxesTPC->SetMinimum(0.90); TrackCosAxesTPC->SetMaximum(1.00); TrackCosAxesTPC->SetLineWidth(2); TrackCosAxesTPC->SetMarkerStyle(20); TrackCosAxesTPC->SetMarkerSize(0.7); TrackCosAxesTPC->GetXaxis()->SetNdivisions(506); TrackCosAxesTPC->GetXaxis()->SetLabelFont(42); TrackCosAxesTPC->GetXaxis()->SetLabelOffset(0.015); TrackCosAxesTPC->GetXaxis()->SetTitleSize(0.07); TrackCosAxesTPC->GetXaxis()->SetTitleFont(42); TrackCosAxesTPC->GetYaxis()->SetNdivisions(506); TrackCosAxesTPC->GetYaxis()->SetLabelFont(42); TrackCosAxesTPC->GetYaxis()->SetLabelOffset(0.015); TrackCosAxesTPC->GetYaxis()->SetTitleSize(0.07); TrackCosAxesTPC->GetYaxis()->SetTitleOffset(1.3); TrackCosAxesTPC->GetYaxis()->SetTitleFont(42); TrackCosAxesTPC->GetZaxis()->SetLabelFont(42); TrackCosAxesTPC->GetZaxis()->SetLabelOffset(0.015); TrackCosAxesTPC->GetZaxis()->SetTitleSize(0.07); TrackCosAxesTPC->GetZaxis()->SetTitleOffset(1.1); TrackCosAxesTPC->GetZaxis()->SetTitleFont(42); TrackCosAxesTPC->GetXaxis()->SetTitle("cos#theta"); TrackCosAxesTPC->GetYaxis()->SetTitle("Efficiency"); TrackCosAxesTPC->Draw(""); grae = new TGraphAsymmErrors(10); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(1); grae->SetLineWidth(2); grae->SetMarkerStyle(24); grae->SetMarkerColor(4); grae->SetLineColor(4); grae->SetMarkerSize(1.0); grae->SetPoint(0,0.05,0.9883646); grae->SetPointError(0,0.05,0.05,0.001149951,0.001079625); grae->SetPoint(1,0.15,0.9901054); grae->SetPointError(1,0.05,0.05,0.001063457,0.0009929839); grae->SetPoint(2,0.25,0.9887832); grae->SetPointError(2,0.05,0.05,0.001125081,0.001055286); grae->SetPoint(3,0.35,0.9898103); grae->SetPointError(3,0.05,0.05,0.00108287,0.001011884); grae->SetPoint(4,0.45,0.9868602); grae->SetPointError(4,0.05,0.05,0.001208319,0.001139374); grae->SetPoint(5,0.55,0.9841849); grae->SetPointError(5,0.05,0.05,0.001290491,0.001224909); grae->SetPoint(6,0.65,0.9861951); grae->SetPointError(6,0.05,0.05,0.001205543,0.001140077); grae->SetPoint(7,0.75,0.9817533); grae->SetPointError(7,0.05,0.05,0.001385647,0.001320043); grae->SetPoint(8,0.85,0.9835032); grae->SetPointError(8,0.05,0.05,0.001287576,0.001224893); grae->SetPoint(9,0.95,0.9423706); grae->SetPointError(9,0.05,0.05,0.002509887,0.002443277); TH1 *Graph5 = new TH1F("Graph5","",100,0,1.1); Graph5->SetMinimum(0.9347369); Graph5->SetMaximum(0.9962222); Graph5->SetDirectory(0); Graph5->SetStats(0); Graph5->SetLineWidth(2); Graph5->SetMarkerStyle(20); Graph5->SetMarkerSize(1.3); Graph5->GetXaxis()->SetNdivisions(506); Graph5->GetXaxis()->SetLabelFont(42); Graph5->GetXaxis()->SetLabelOffset(0.015); Graph5->GetXaxis()->SetTitleSize(0.07); Graph5->GetXaxis()->SetTitleFont(42); Graph5->GetYaxis()->SetNdivisions(506); Graph5->GetYaxis()->SetLabelFont(42); Graph5->GetYaxis()->SetLabelOffset(0.015); Graph5->GetYaxis()->SetTitleSize(0.07); Graph5->GetYaxis()->SetTitleOffset(1.1); Graph5->GetYaxis()->SetTitleFont(42); Graph5->GetZaxis()->SetLabelFont(42); Graph5->GetZaxis()->SetLabelOffset(0.015); Graph5->GetZaxis()->SetTitleSize(0.07); Graph5->GetZaxis()->SetTitleOffset(1.1); Graph5->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph5); grae->Draw("p"); TH1 *TrackCosAxesALL = new TH1F("TrackCosAxesALL","Combined Tracking Efficiency vs Cos #theta (p>1GeV and NHits>3)",10,0,1); TrackCosAxesALL->SetLineWidth(2); TrackCosAxesALL->SetMarkerStyle(20); TrackCosAxesALL->SetMarkerColor(2); TrackCosAxesALL->SetLineColor(2); TrackCosAxesALL->SetMarkerSize(0.7); TrackCosAxesALL->GetXaxis()->SetNdivisions(506); TrackCosAxesALL->GetXaxis()->SetLabelFont(42); TrackCosAxesALL->GetXaxis()->SetLabelOffset(0.015); TrackCosAxesALL->GetXaxis()->SetTitleSize(0.07); TrackCosAxesALL->GetXaxis()->SetTitleFont(42); TrackCosAxesALL->GetYaxis()->SetNdivisions(506); TrackCosAxesALL->GetYaxis()->SetLabelFont(42); TrackCosAxesALL->GetYaxis()->SetLabelOffset(0.015); TrackCosAxesALL->GetYaxis()->SetTitleSize(0.07); TrackCosAxesALL->GetYaxis()->SetTitleOffset(1.1); TrackCosAxesALL->GetYaxis()->SetTitleFont(42); TrackCosAxesALL->GetZaxis()->SetLabelFont(42); TrackCosAxesALL->GetZaxis()->SetLabelOffset(0.015); TrackCosAxesALL->GetZaxis()->SetTitleSize(0.07); TrackCosAxesALL->GetZaxis()->SetTitleOffset(1.1); TrackCosAxesALL->GetZaxis()->SetTitleFont(42); TrackCosAxesALL->Draw("same p"); grae = new TGraphAsymmErrors(10); grae->SetName(""); grae->SetTitle(""); grae->SetFillColor(1); grae->SetLineWidth(2); grae->SetMarkerStyle(20); grae->SetMarkerColor(2); grae->SetLineColor(2); grae->SetMarkerSize(1.0); grae->SetPoint(0,0.05,0.9965197); grae->SetPointError(0,0.05,0.05,0.0006756075,0.0005983288); grae->SetPoint(1,0.15,0.9989339); grae->SetPointError(1,0.05,0.05,0.0003998962,0.0003196467); grae->SetPoint(2,0.25,0.9974163); grae->SetPointError(2,0.05,0.05,0.0005924462,0.0005139262); grae->SetPoint(3,0.35,0.9973599); grae->SetPointError(3,0.05,0.05,0.0006053628,0.0005251379); grae->SetPoint(4,0.45,0.997075); grae->SetPointError(4,0.05,0.05,0.0006260871,0.0005479808); grae->SetPoint(5,0.55,0.9972721); grae->SetPointError(5,0.05,0.05,0.0005968899,0.0005209613); grae->SetPoint(6,0.65,0.9965704); grae->SetPointError(6,0.05,0.05,0.0006542751,0.0005805828); grae->SetPoint(7,0.75,0.9968365); grae->SetPointError(7,0.05,0.05,0.0006372353,0.0005618963); grae->SetPoint(8,0.85,0.9960521); grae->SetPointError(8,0.05,0.05,0.000685499,0.0006145558); grae->SetPoint(9,0.95,0.9943364); grae->SetPointError(9,0.05,0.05,0.001097918,0.0009727317); TH1 *Graph6 = new TH1F("Graph6","",100,0,1.1); Graph6->SetMinimum(0.992637); Graph6->SetMaximum(0.9998551); Graph6->SetDirectory(0); Graph6->SetStats(0); Graph6->SetLineWidth(2); Graph6->SetMarkerStyle(20); Graph6->SetMarkerSize(1.0); Graph6->GetXaxis()->SetNdivisions(506); Graph6->GetXaxis()->SetLabelFont(42); Graph6->GetXaxis()->SetLabelOffset(0.015); Graph6->GetXaxis()->SetTitleSize(0.07); Graph6->GetXaxis()->SetTitleFont(42); Graph6->GetYaxis()->SetNdivisions(506); Graph6->GetYaxis()->SetLabelFont(42); Graph6->GetYaxis()->SetLabelOffset(0.015); Graph6->GetYaxis()->SetTitleSize(0.07); Graph6->GetYaxis()->SetTitleOffset(1.1); Graph6->GetYaxis()->SetTitleFont(42); Graph6->GetZaxis()->SetLabelFont(42); Graph6->GetZaxis()->SetLabelOffset(0.015); Graph6->GetZaxis()->SetTitleSize(0.07); Graph6->GetZaxis()->SetTitleOffset(1.1); Graph6->GetZaxis()->SetTitleFont(42); grae->SetHistogram(Graph6); grae->Draw("same p"); TLegend *leg = new TLegend(0.24,0.25,0.7,0.4,NULL,"brNDC"); leg->SetBorderSize(0); leg->SetTextFont(42); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); TLegendEntry *entry=leg->AddEntry("effyQ1","TPC + Si detectors","p"); entry->SetLineColor(2); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry=leg->AddEntry("effyQ1TPC","TPC only","p"); entry->SetLineColor(4); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); leg->Draw(); TLatex* tex = new TLatex(0.1,0.933,"p>1 GeV"); tex->Draw(); c2->Modified(); c2->cd(); c2->SetSelected(c2); c2->SaveAs("FullTrackPerformance_Effy_CosTheta.eps"); c2->SaveAs("FullTrackPerformance_Effy_CosTheta.gif"); }